package cc.mycraft.events;

import java.util.UUID;

import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public final class PlayerAccountFindEvent extends Event implements Cancellable{
	
	private static final HandlerList handlers = new HandlerList();

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	
	public static HandlerList getHandlerList() {
		return handlers;
	}
	

	private String name;
	private UUID uuid;
	private boolean cancel;
	
	public PlayerAccountFindEvent(String name) {
		this.name = name;
	}
	
	public void setUUID(UUID uuid) {
		this.uuid = uuid;
	}
	public UUID getResult() {
		return this.uuid;
	}
	public String getName() {
		return this.name;
	}

	public boolean isCancelled() {
		return this.cancel;
	}
	public void setCancelled(boolean b) {
		this.cancel = b;
	}
}
